home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIStatefulFrame.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  927b  |  30 lines

  1. #ifndef _nsIStatefulFrame_h
  2. #define _nsIStatefulFrame_h
  3.  
  4. #include "nsISupports.h"
  5.  
  6. class nsPresContext;
  7. class nsPresState;
  8.  
  9. #define NS_ISTATEFULFRAME_IID \
  10. {0x26254ab7, 0xdea3, 0x4375, \
  11. {0xb0, 0x1d, 0xbd, 0x11, 0xa1, 0x4b, 0x54, 0xbc}}
  12.  
  13. class nsIStatefulFrame : public nsISupports {
  14.  public: 
  15.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISTATEFULFRAME_IID)
  16.  
  17.   // If you create a special type stateful frame (e.g. scroll) that needs
  18.   // to be captured outside of the standard pass through the frames, you'll need
  19.   // a special ID by which to refer to that type.
  20.   //
  21.   // There is space reserved between standard ID's and special ID's by the
  22.   // offset NS_CONTENT_ID_COUNTER_BASE
  23.   enum SpecialStateID {eNoID=0, eDocumentScrollState};
  24.  
  25.   NS_IMETHOD SaveState(nsPresContext* aPresContext, nsPresState** aState) = 0;
  26.   NS_IMETHOD RestoreState(nsPresContext* aPresContext, nsPresState* aState) = 0;
  27. };
  28.  
  29. #endif /* _nsIStatefulFrame_h */
  30.